<!doctype html>
<html>

<head>
	<meta charset="utf-8" />
	<title>格式处理V14.3</title>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
	<link rel="stylesheet" type="text/css" href="css/main.css" />
	<link rel="shortcut icon" href="favicon.ico" />
	<script src="js/gb2312.js"></script>
	<script src="js/Setting.js"></script>
	<script src="js/jquery-3.4.1.min.js"></script>
	<script src="js/layer/layer.js"></script>
	<script src="js/FormatUtil.js"></script>
	<script src="js/MainUI.js"></script>
</head>

<body>
	<div class="zmain">
		<div class="ztitle">格式处理V14.3</div>
		<div class="edit-div">
			<div class="add-div">
				<div class="edit-text-part">
					<div class="textarea-div">
						<textarea class="a-input" id="match-content" onblur="storageText()" onchange="countWordNum();"
							onkeyup="countWordNum();"></textarea>
					</div>
					<div class="show-div">
						<div class="match-attr-div">
							<div>
								<span>总字数：</span>
								<span id="match-word-num">0</span>
								<span>英文字符：</span>
								<span id="en-char-num">0</span>
								<span>符号配对：</span>
								<span id="status-text">正常</span>
							</div>
							<div>
								<span>不常用字：</span>
								<span id="gbk-num" class="gbk-num">0</span>
							</div>
						</div>

					</div>
				</div>
				<div class="btn-part">
					<div>
						<div class="buttons main-btns">
							<a id="format-btn" href="javascript:;" class="btn btn-hover hover" hidefocus="true"
								style="outline: none;position: relative;right: 8px;"><span>整理格式</span></a>
							<a id="copy-text-btn" href="javascript:;" class="btn btn-hover hover" hidefocus="true"
								style="outline: none;position: relative;right: 8px;"><span>复制</span></a>
							<a id="reset-btn" href="javascript:;" class="btn btn-large btn-reset-green" hidefocus="true"
								style="outline: none;position: relative;right: 16px;"><span>重置</span></a>
						</div>
						<div class="buttons main-btns main-btns-mobile">
							<a id="mobile-cut-btn" href="javascript:;" class="btn btn-hover hover" hidefocus="true"
								style="outline: none;position: relative;right: 8px;"><span>文章切段</span></a>
							<a id="mobile-replace-btn" href="javascript:;" class="btn btn-hover hover" hidefocus="true"
								style="outline: none;position: relative;right: 8px;"><span>替换</span></a>
							<a id="mobile-upload-fmt-btn" href="javascript:;" class="btn btn-hover hover"
								hidefocus="true"
								style="outline: none;position: relative;right: 8px;"><span>批量格式</span></a>
						</div>
						<div class="upload-tips upload-tips-mobile" id="upload-tips-intro">说明：【批量格式】作用是去除多余换行，用于极速后台批量上传
						</div>
					</div>
					<div id="cut-text-part">
						<div class="mobile-modal-edit-part">
							<div class="min-common-title">文章切段：</div>
							<div>
								<input id="cut-title-ipt" type="text" value="" placeholder="切段标题" class="a-input r-4"
									hidefocus="true">
							</div>
							<div class="replace-rep-line">
								<a href="javascript:;" class="a-select cut-word-btn" onclick="addWordCount(-50)">-</a>
								<input id="cut-select" value="500" type="number" style="display: none" ; />
								<span id="cut-num-sp" class="a-select cut-word-num">500字</span>
								<a href="javascript:;" class="a-select cut-word-btn" onclick="addWordCount(50)">+</a>
								<a id="cut-btn" href="javascript:;" class="btn btn-hover hover"
									style="outline: none;margin-left: 6px;"><span>切段</span></a>
							</div>
						</div>
					</div>
					<div id="replace-text-part">
						<div class="mobile-modal-edit-part">
							<div class="min-common-title">替换文本：</div>
							<div class="auto-rep-div" id="auto-rep-div">
								<a href="javascript:;" data-rep="、" to-rep="，">顿号转逗号</a>
								<a href="javascript:;" data-rep="：" to-rep="，">冒号转逗号</a>
								<a href="javascript:;" data-rep="\d+\." to-rep="">去除序号</a>
								<a href="javascript:;" data-rep="[“”]" to-rep="">去除双引号</a>
								<a href="javascript:;" data-rep="（[^（）]+）" to-rep="">去除括号内容</a>
								<!-- <a hef="javascript:;" data-rep="(^(\s*.+·.+))|(●\s*.+)|(（.+）\s*)$" to-rep="">杂志开头结尾</a> -->
								<a href="javascript:;" data-rep="">清除</a>
							</div>
							<div>
								<input id="original-ipt" type="text" value="" placeholder="查找内容，支持正则表达式"
									class="a-input w-210 r-4" hidefocus="true">
							</div>
							<div class="replace-rep-line">
								<input id="rep-ipt" type="text" value="" placeholder="替换内容" class="a-input r-4 pb2"
									hidefocus="true">
								<a id="replace-btn" href="javascript:;" class="btn btn-hover hover" hidefocus="true"
									style="outline: none;"><span>替换</span></a>
							</div>
							<div class="rep-opt-line">
							</div>
						</div>
					</div>
					<div id="deal-upload-part">
						<div class="min-common-title">整理上传格式：</div>
						<div class="replace-rep-line">
							<input style="display:none" id="begin-up-stage" type="text" value="" placeholder="期数"
								class="a-input r-4 pb2" hidefocus="true">
							<input id="match-upload-name" type="text" value="" placeholder="上传者，可不填写"
								class="a-input r-4 pb2" hidefocus="true">
							<a id="upload-fmt-btn" href="javascript:;" class="btn btn-hover hover" hidefocus="true"
								style="outline: none;"><span>整理</span></a>
						</div>
						<div class="upload-tips" id="upload-tips-intro">说明：去除多余换行，用于极速批量上传</div>
						<div class="upload-tips" style="color:red;display:none" id="upload-tips-err">格式错误，注意标题和内容配对
						</div>
					</div>
				</div>

			</div>

		</div>
	</div>
</body>

</html>